
$(".btn").click(function(){
		$.post("isExits.php",{name:$("#login-user").val(),pwd:$("#login-pwd").val()},function(resText){
			console.log(resText)
			if(resText == "0"){
				let ls = sessionStorage;
				ls.name = $("#login-user").val();
				alert("登录成功");
					location.href="index.html"
			}else{
				alert("登录失败,请重新登录");
			}
		})
	})
	

